package com.tengju.payment.domain.shard;

import lombok.Getter;

import java.util.Date;

@Getter
public class DateParseException extends RuntimeException {

    private final String dateString;
    private final Date parseDate;
    private final String format;

    public DateParseException(String format, Date parseDate) {
        super("DateParseException:" + format + "," + parseDate);
        this.parseDate = parseDate;
        this.format = format;
        this.dateString = "";
    }

    public DateParseException(String format, String dateString) {
        super("DateParseException:" + format + "," + dateString);
        this.dateString = dateString;
        this.format = format;
        this.parseDate = null;
    }
}
